const express = require('express')
let server = express()

//目录1：/user/
let routeUser = express.Router()
routeUser.get('/1.html',function(req, res){
	res.send('user1')
})
routeUser.get('/2.html',function(req, res){
	res.send('user2')
})
server.use('/user',routeUser)
//目录2
let articleRoute = express.Router()
server.use('/article',articleRoute)
articleRoute.get('/1.html',function(req,res){
	res.send('articleRoute1')
})

server.listen(8080)